package com.luyu.authserverdemo.config;

import jakarta.servlet.Filter;
import lombok.RequiredArgsConstructor;
import org.springframework.security.config.annotation.ObjectPostProcessor;

/**
 * @author luYu
 */
@RequiredArgsConstructor
public class ManagerWithPostProcessor implements ObjectPostProcessor<Object> {




    @Override
    public Object postProcess(Object object) {
        if (object instanceof Filter filter){

            System.out.println("filterClass:"+filter.getClass());
        }
        return object;
    }
}
